package com.qf.rbac2202.utils;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: 可乐
 * @Description:
 * @CreateTime: 2022-11-01  18:50
 */

@ControllerAdvice
public class GlobalExceptionHander {

	@ExceptionHandler(QFException.class)
	@ResponseBody
	public Object qfException(QFException exception){
		return exception;
	}



}
